/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>Project: mybatis2021 - StudentMapper
 * <p>Powered by webrx On 2021-07-19 17:21:29
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 15
 */
public interface StudentMapper {
    @Select("select id,name,info from t_student order by id desc")
    public List<Map<String,Object>> query();

    public List<Map<String,Object>> queryAll();

    @Delete("delete from t_student where id = #{id}")
    public int deleteById(int id);


    public int add(Map<String,Object> map);
}
